home *** CD-ROM | disk | FTP | other *** search
- Path: nntp.teleport.com!usenet
- From: GHouck <hksys@teleport.com>
- Newsgroups: comp.lang.c
- Subject: Re: Convert String to Int?
- Date: 5 Mar 1996 10:34:49 GMT
- Organization: systems hk
- Message-ID: <4hh5c9$iia@nadine.teleport.com>
- References: <4hf3sk$k57@hustle.rahul.net>
- NNTP-Posting-Host: ip-pdx03-48.teleport.com
- Mime-Version: 1.0
- Content-Type: text/plain; charset=us-ascii
- Content-Transfer-Encoding: 7bit
- X-Mailer: Mozilla 1.22 (Windows; I; 32bit)
-
- Stephen Parry <sparry@rahul.net> wrote:
- >I have some numbers, range 0 to 999, stored as a strings. I need to
- >convert them to integers. Could I get some hints how to do this?
- >
- >Stephen
- Stephen,
- One way is to use the function 'atoi()'; i.e., intVal = atoi( strVal );
- Yours, Geoff Houck
-
-